package com.atguigu.gmall.product.service;

import com.atguigu.gmall.model.product.*;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import java.util.List;

/**
 * @Author: Trump
 * @Date: 2025/8/17 18:53
 * @Description:
 **/
public interface ManageService {
    List<BaseCategory1> getCategory1();


    List<BaseCategory2> getCategory2(Integer id);

    List<BaseCategory3> getCategory3(Integer id);

    List<BaseAttrInfo> attrInfoList(Long category1Id, Long category2Id, Long category3Id);

    void saveAttrInfo(BaseAttrInfo baseAttrInfo);


    BaseAttrInfo getAttrInfo(Long attrId);

    IPage<SpuInfo> getSpuInfoPage(Page<SpuInfo> pageParam, SpuInfo spuInfo);

    List<BaseSaleAttr> getBaseSaleAttrList();


    void saveSpuInfo(SpuInfo spuInfo);

    List<SpuImage> getSpiImageList(Long supId);

    List<SpuSaleAttr> getSpuSaleAttrList(Long spuId);

    IPage<SkuInfo> getPage(Page<SkuInfo> skuInfoPage);

    void onSale(Long skuId);

    void cancelSale(Long skuId);

    void saveSkuInfo(SkuInfo skuInfo);

}
